<?php
/**
 * Created by PhpStorm.
 * User: hasee
 * Date: 2018/4/10
 * Time: 11:56
 */
$this->registerCssFile('/css/style.css');
?>

<div class="body8" style="background: url(/img/zhuce2.jpg)no-repeat;background-size: 100%;width: 100%;padding-top:162%;position: relative;top: 0px;font-size: 20px;">
    <form>
        <input style="background: #fff;" type="text" id="code_id">
    </form>
</div>

<input class="sub4" type="button" id="sub44" style="">


<script type="text/javascript">

    $(function(){
        $("#sub44").click(function(){
            var num = $("#code_id").val();
            $.get("/summit/verify?code="+num,function(data){
                if(data.code=="50"){
                    alert("邀请码错误");
                }else if(data.code=="200"){
                    window.location.href='/summit/signup?code='+num;
                }
            })
        })
    })

</script>

